import java.util.Random;
import java.util.Scanner;
public class test8 {
    public static void main(String[] args) {
        String[] ranks = {
            "Ace", "2", "3", "4", "5", "6", "7",
            "8", "9", "10", "Jack", "Queen", "King"
        };
        String[] suits = { "Clubs", "Diamonds", "Hearts", "Spades" };
        Random random = new Random();
        int cardIndex = random.nextInt(52);
        String rank = ranks[cardIndex % 13];
        String suit = suits[cardIndex / 13];
        System.out.println("The card you picked is " + rank + " of " + suit);
    }
}
